<div id="content">
    <div id="game-title"><?php echo dl_lang_general("main.game_title"); ?></div>
    <div id="game-subtitle"><?php echo dl_lang_general("main.game_subtitle"); ?></div>
    <div id="middle">
        <div id="middle-top"></div>
        <div id="middle-text">
            <?php
            if (isset($_GET["sekce"]) && $_GET["sekce"] != "")
            {
                switch ($_GET["sekce"])
                {
                    case "messages":      include "section/messages/index.php"; break;
                    case "heroes":        include "section/heroes/index.php"; break;
                    case "faq":           include "section/faq/index.php"; break;
                    default:              include "section/heroes/index.php";
                }
            }
            else
            {
                include "section/heroes/index.php";
            }
        ?>
        </div>
        <div id="middle-bottom"></div>
    </div>
    
    <div id="menu">
        <div id="menu-top"></div>
        <div class="menu-middle">
            <div class="title"><?php echo dl_lang_general("menu.menu"); ?></div>
            <?php
                echo html_href("heroes", dl_lang_general("menu.heroes")) . "<br /><br />" . 
                     html_href("xlogout", dl_lang_general("menu.logout"));
            ?>
        </div>
        <div class="menu-connection"></div>
        <div class="menu-middle">
            <div class="title"><?php echo dl_lang_general("hero.hero"); ?></div>
            <?php
                if (!isset($hero) OR $hero == "")
                {
                    echo dl_lang_general("msg.no_selected_hero");
                }
            ?>
        </div>
        <div class="menu-connection"></div>
        <div class="menu-middle">
            <div class="title"><?php echo dl_lang_general("main.messages"); ?></div>
            <div id="messages">
                <?php
                $s = dibi::query("SELECT COUNT(*) FROM account_messages WHERE %and", array(array("mess_to = %i", $data["user"]["id"]),
                                                                                           array("mess_read = 0")));
                $pocet = $s->fetchSingle();
                
                if ($pocet > 0)
                {
                        echo html_href("messages", html_image("images/messages/messages_on.png", dl_lang_general("main.unread_messages")));
                        echo "<strong><font>" . $pocet . "</font></strong>";
                } else {
                        echo html_href("messages", html_image("images/messages/messages_off.png", dl_lang_general("main.messages")));
                }
                ?>
            </div>
        </div>
        <div id="menu-bottom"></div>
    </div>
    
    
</div>